package ANDROID_LIFECYCLE_SV_GETEXTRA;


import javax.naming.Context;

public class Example {
    void test()
    {
        BroadcastReceiver m_batteryReceiver = new BroadcastReceiver() {
            public void onReceive(Context arg0, Intent intent) {
                String s = intent.getStringExtra("url");
                Intent i = new Intent(Intent.ACTION_VIEW);
                i.setData(Uri.parse(s));
                startActivity(i);
            }
        };
    }
}
